import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/register.vue'),
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/chat',
      name: 'chat',
      component: () => import('../views/ChatPage.vue'),
    },
    {
      path: '/image-generation',
      name: 'image-generation',
      component: () => import('../views/ImageGenerationView.vue'),
    },
    {
      path: '/rag-knowledge-base',
      name: 'rag-knowledge-base',
      component: () => import('../views/RagKnowledgeBaseView.vue'),
    },
  ],
})

export default router